export function isExcel(file) {
  return !!file && file.type ===
    "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
}

// 字符串转大写
export function toUpString(str = '') {
  return str.replace(/\b\w/g, str1 => str1.toUpperCase());
}